home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1999 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'UPTShell95.pas' rev: 4.00
-
- #ifndef UPTShell95HPP
- #define UPTShell95HPP
-
- #pragma delphiheader begin
- #pragma option push -w-
- #include <ShellAPI.hpp> // Pascal unit
- #include <Graphics.hpp> // Pascal unit
- #include <Windows.hpp> // Pascal unit
- #include <OLE2.hpp> // Pascal unit
- #include <SysInit.hpp> // Pascal unit
- #include <System.hpp> // Pascal unit
-
- //-- user supplied -----------------------------------------------------------
- #define NO_WIN32_LEAN_AND_MEAN
- #define __exdisp_h__
- #include <DsgnIntf.hpp>
- #include <ShlObj.hpp>
- #include <Utilcls.h>
- #include <ComObj.hpp>
-
- namespace Uptshell95
- {
- //-- type declarations -------------------------------------------------------
- typedef int TPTHWND;
-
- #pragma pack(push, 1)
- struct TSHItemID
- {
- Word cb;
- Byte abID[1];
- } ;
- #pragma pack(pop)
-
- typedef TSHItemID *PSHItemID;
-
- #pragma pack(push, 1)
- struct TItemIDList
- {
- TSHItemID mkid;
- } ;
- #pragma pack(pop)
-
- typedef TItemIDList *PItemIDList;
-
- typedef PItemIDList *PPItemIdList;
-
- typedef GUID *TRefIId;
-
- class DELPHICLASS IUnknown;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION IUnknown : public System::TObject
- {
- typedef System::TObject inherited;
-
- public:
- virtual unsigned __stdcall QueryInterface(const GUID &iid, void *obj) = 0 ;
- virtual int __stdcall AddRef(void) = 0 ;
- virtual int __stdcall Release(void) = 0 ;
- public:
- #pragma option push -w-inl
- /* TObject.Create */ inline __fastcall IUnknown(void) : System::TObject() { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~IUnknown(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- class DELPHICLASS IOleWindow;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION IOleWindow : public IUnknown
- {
- typedef IUnknown inherited;
-
- public:
- virtual unsigned __stdcall GetWindow(HWND &wnd) = 0 ;
- virtual unsigned __stdcall ContextSensitiveHelp(BOOL fEnterMode) = 0 ;
- public:
- #pragma option push -w-inl
- /* TObject.Create */ inline __fastcall IOleWindow(void) : IUnknown() { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~IOleWindow(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- #pragma pack(push, 1)
- struct TStrRet
- {
- unsigned uType;
- union
- {
- struct
- {
- char cStr[261];
-
- };
- struct
- {
- unsigned uOffset;
-
- };
- struct
- {
- wchar_t *pOleStr;
-
- };
-
- };
- } ;
- #pragma pack(pop)
-
- typedef TStrRet *PStrRet;
-
- #pragma pack(push, 1)
- struct TShColInfo
- {
- int justify;
- int width;
- TStrRet text;
- } ;
- #pragma pack(pop)
-
- typedef TShColInfo *PShColInfo;
-
- class DELPHICLASS IShellDetails;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION IShellDetails : public IUnknown
- {
- typedef IUnknown inherited;
-
- public:
- virtual unsigned __stdcall GetDetailsOf(PItemIDList pidl, unsigned col, TShColInfo &info) = 0 ;
- virtual unsigned __stdcall ColumnClick(unsigned col) = 0 ;
- public:
- #pragma option push -w-inl
- /* TObject.Create */ inline __fastcall IShellDetails(void) : IUnknown() { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~IShellDetails(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- typedef int SLR_FLAGS;
-
- typedef int SLGP_FLAGS;
-
- #pragma pack(push, 1)
- struct TCMInvokeCommandInfo
- {
- unsigned cbSize;
- unsigned fMask;
- unsigned hwnd;
- char *lpVerb;
- char *lpParameters;
- char *lpDirectory;
- int nShow;
- unsigned dwHotKey;
- unsigned hIcon;
- } ;
- #pragma pack(pop)
-
- typedef TCMInvokeCommandInfo *PCMInvokeCommandInfo;
-
- class DELPHICLASS IContextMenu;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION IContextMenu : public IUnknown
- {
- typedef IUnknown inherited;
-
- public:
- virtual unsigned __stdcall QueryContextMenu(unsigned hMenu, unsigned indexMenu, unsigned idCmdFirst
- , unsigned idCmdLast, unsigned uFlags) = 0 ;
- virtual unsigned __stdcall InvokeCommand(const TCMInvokeCommandInfo &ici) = 0 ;
- virtual unsigned __stdcall GetCommandString(unsigned idCmd, unsigned uType, PUINT pwReserved, char *
- pszName, unsigned cchMax) = 0 ;
- public:
- #pragma option push -w-inl
- /* TObject.Create */ inline __fastcall IContextMenu(void) : IUnknown() { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~IContextMenu(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- class DELPHICLASS IContextMenu2;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION IContextMenu2 : public IContextMenu
- {
- typedef IContextMenu inherited;
-
- public:
- virtual unsigned __stdcall HandleMenuMsg(unsigned uMsg, unsigned wParam, unsigned lParam) = 0 ;
- public:
-
- #pragma option push -w-inl
- /* TObject.Create */ inline __fastcall IContextMenu2(void) : IContextMenu() { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~IContextMenu2(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- class DELPHICLASS IEnumIDList;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION IEnumIDList : public IUnknown
- {
- typedef IUnknown inherited;
-
- public:
- virtual unsigned __stdcall Next(int celt, PItemIDList &pidl, Windows::PInteger pFetched) = 0 ;
- virtual unsigned __stdcall Skip(int celt) = 0 ;
- virtual unsigned __stdcall Reset(void) = 0 ;
- virtual unsigned __stdcall Clone(IEnumIDList* &enumIdList) = 0 ;
- public:
- #pragma option push -w-inl
- /* TObject.Create */ inline __fastcall IEnumIDList(void) : IUnknown() { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~IEnumIDList(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- typedef unsigned SHGNO;
-
- typedef unsigned SHCONTF;
-
- class DELPHICLASS IShellFolder;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION IShellFolder : public IUnknown
- {
- typedef IUnknown inherited;
-
- public:
- virtual unsigned __stdcall ParseDisplayName(HWND hwndOwner, void * reserved, wchar_t * displayName,
- unsigned &chEaten, PItemIDList &pidl, unsigned &dwAttributes) = 0 ;
- virtual unsigned __stdcall EnumObjects(HWND hwndOwner, unsigned grfFlags, IEnumIDList* &penumIdList
- ) = 0 ;
- virtual unsigned __stdcall BindToObject(PItemIDList pidl, void * reserved, TRefIId riid, void * &pvOut
- ) = 0 ;
- virtual unsigned __stdcall BindToStorage(PItemIDList pidl, void * reserved, TRefIId riid, void * &pvObj
- ) = 0 ;
- virtual unsigned __stdcall CompareIDs(int lparam, PItemIDList pidl1, PItemIDList pidl2) = 0 ;
- virtual unsigned __stdcall CreateViewObject(HWND hwndOwner, TRefIId riid, void * &ppvOut) = 0 ;
- virtual unsigned __stdcall GetAttributesOf(unsigned cidl, PItemIDList &pidl, unsigned &rgfInOut) = 0
- ;
- virtual unsigned __stdcall GetUIObjectOf(HWND hwndOwner, unsigned cild, PItemIDList &pidl, TRefIId
- riid, PUINT prgfInOut, void * &ppvOut) = 0 ;
- virtual unsigned __stdcall GetDisplayNameOf(PItemIDList pidl, unsigned uFlags, TStrRet &name) = 0 ;
-
- virtual unsigned __stdcall SetNameOf(HWND hwndOwner, PItemIDList pidl, wchar_t * swzName, unsigned
- uFlags, PItemIDList &pidlOut) = 0 ;
- public:
- #pragma option push -w-inl
- /* TObject.Create */ inline __fastcall IShellFolder(void) : IUnknown() { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~IShellFolder(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- class DELPHICLASS IShellFolder2;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION IShellFolder2 : public IShellFolder
- {
- typedef IShellFolder inherited;
-
- public:
- virtual void __stdcall F1(void) = 0 ;
- virtual void __stdcall F2(void) = 0 ;
- virtual void __stdcall F3(void) = 0 ;
- virtual unsigned __stdcall GetDefaultColumnState(unsigned iColumn, unsigned &pcsFlags) = 0 ;
- virtual void __stdcall F5(void) = 0 ;
- virtual unsigned __stdcall GetDetailsOf(PItemIDList pidl, unsigned iColumn, TShColInfo &sd) = 0 ;
- public:
-
- #pragma option push -w-inl
- /* TObject.Create */ inline __fastcall IShellFolder2(void) : IShellFolder() { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~IShellFolder2(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- class DELPHICLASS IShellLink;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION IShellLink : public IUnknown
- {
- typedef IUnknown inherited;
-
- public:
- virtual unsigned __stdcall GetPath(char * pszFile, int cchMaxPath, _WIN32_FIND_DATAA &fd, unsigned
- fFlags) = 0 ;
- virtual unsigned __stdcall GetIDList(PItemIDList &pidl) = 0 ;
- virtual unsigned __stdcall SetIDList(PItemIDList pidl) = 0 ;
- virtual unsigned __stdcall GetDescription(char * pszName, int cchMaxName) = 0 ;
- virtual unsigned __stdcall SetDescription(char * pszName) = 0 ;
- virtual unsigned __stdcall GetWorkingDirectory(char * pszDir, int cchMaxPath) = 0 ;
- virtual unsigned __stdcall SetWorkingDirectory(char * pszDir) = 0 ;
- virtual unsigned __stdcall GetArguments(char * pszArgs, int cchMaxPath) = 0 ;
- virtual unsigned __stdcall SetArguments(char * pszArgs) = 0 ;
- virtual unsigned __stdcall GetHotKey(Word &wHotKey) = 0 ;
- virtual unsigned __stdcall SetHotKey(Word wHotKey) = 0 ;
- virtual unsigned __stdcall GetShowCmd(int &iShowCmd) = 0 ;
- virtual unsigned __stdcall SetShowCmd(int iShowCmd) = 0 ;
- virtual unsigned __stdcall GetIconLocation(char * pszIconPath, int cchIconPath, int &iIcon) = 0 ;
- virtual unsigned __stdcall SetIconLocation(char * pszIconPath, int iIcon) = 0 ;
- virtual unsigned __stdcall SetRelativePath(char * pszPathRel, unsigned dwReserved) = 0 ;
- virtual unsigned __stdcall Resolve(HWND hwnd, unsigned fFlags) = 0 ;
- virtual unsigned __stdcall SetPath(char * pszFile) = 0 ;
- public:
- #pragma option push -w-inl
- /* TObject.Create */ inline __fastcall IShellLink(void) : IUnknown() { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~IShellLink(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- class DELPHICLASS IShellBrowser;
- #pragma pack(push, 4)
- class PASCALIMPLEMENTATION IShellBrowser : public IUnknown
- {
- typedef IUnknown inherited;
-
- public:
- #pragma option push -w-inl
- /* TObject.Create */ inline __fastcall IShellBrowser(void) : IUnknown() { }
- #pragma option pop
- #pragma option push -w-inl
- /* TObject.Destroy */ inline __fastcall virtual ~IShellBrowser(void) { }
- #pragma option pop
-
- };
-
- #pragma pack(pop)
-
- typedef int __stdcall (*TBrowseCallbackProc)(HWND ahwnd, unsigned uMsg, int lParam, void * lpData);
-
- #pragma pack(push, 1)
- struct TBrowseInfo
- {
- HWND hwndOwner;
- TItemIDList *pidlRoot;
- char *pszDisplayName;
- char *lpszTitle;
- unsigned ulFlags;
- TBrowseCallbackProc lpfn;
- unsigned lParam;
- int iImage;
- } ;
- #pragma pack(pop)
-
- typedef TBrowseInfo *PBrowseInfo;
-
- #pragma pack(push, 1)
- struct TNResArray
- {
- unsigned cItems;
- _NETRESOURCEA nr[1];
- } ;
- #pragma pack(pop)
-
- typedef TNResArray *PNResArray;
-
- #pragma pack(push, 1)
- struct TCIDA
- {
- unsigned cidl;
- unsigned aoffset[1];
- } ;
- #pragma pack(pop)
-
- typedef TCIDA *PCIDA;
-
- #pragma pack(push, 1)
- struct TFileDescriptor
- {
- unsigned dwFlags;
- GUID clsID;
- tagSIZE sizel;
- Windows::TPoint pointl;
- unsigned dwFileAttributes;
- _FILETIME ftCreationTime;
- _FILETIME ftLastAccessTime;
- _FILETIME ftLastWriteTime;
- unsigned nFileSizeHigh;
- unsigned nFileSizeLow;
- char cFileName[260];
- } ;
- #pragma pack(pop)
-
- typedef TFileDescriptor *PFileDescriptor;
-
- #pragma pack(push, 1)
- struct TFileGroupDescriptor
- {
- unsigned cItems;
- TFileDescriptor fgd[1];
- } ;
- #pragma pack(pop)
-
- typedef TFileGroupDescriptor *PFileGroupDescriptor;
-
- #pragma pack(push, 1)
- struct TDropFiles
- {
- unsigned pFiles;
- Windows::TPoint pt;
- BOOL fNC;
- BOOL fWide;
- } ;
- #pragma pack(pop)
-
- typedef TDropFiles *PDropFiles;
-
- #pragma pack(push, 1)
- struct TShDescriptionId
- {
- unsigned dwDescriptionId;
- GUID clsid;
- } ;
- #pragma pack(pop)
-
- typedef TShDescriptionId *PShDescriptionId;
-
- typedef unsigned __stdcall (*TSHGetDataFromIDListA)(IShellFolder* ishf, PItemIDList pidl, int nFormat
- , void * pv, int cb);
-
- //-- var, const, procedure ---------------------------------------------------
- static const Byte PTSHELLCONTROLS_VERSION = 0xa0;
- static const Byte PTSHELLCONTROLS_PATCHSYM = 0x20;
- static const Shortint PTSHELLCONTROLS_PATCH = 0xffffffc0;
- extern PACKAGE GUID CLSID_ShellDesktop;
- extern PACKAGE GUID CLSID_ShellLink;
- extern PACKAGE GUID CLSID_InternetShortcut;
- extern PACKAGE GUID IID_INewShortcutHookA;
- extern PACKAGE GUID IID_IShellBrowser;
- extern PACKAGE GUID IID_IShellView;
- extern PACKAGE GUID IID_IContextMenu;
- extern PACKAGE GUID IID_IShellIcon;
- extern PACKAGE GUID IID_IShellFolder;
- extern PACKAGE GUID IID_IShellExtInit;
- extern PACKAGE GUID IID_IShellPropSheetExt;
- extern PACKAGE GUID IID_IExtractIconA;
- extern PACKAGE GUID IID_IExtractIcon;
- extern PACKAGE GUID IID_IShellLinkA;
- extern PACKAGE GUID IID_IShellLink;
- extern PACKAGE GUID IID_IShellCopyHook;
- extern PACKAGE GUID IID_IFileViewer;
- extern PACKAGE GUID IID_ICommDlgBrowser;
- extern PACKAGE GUID IID_IEnumIDList;
- extern PACKAGE GUID IID_IFileViewerSite;
- extern PACKAGE GUID IID_IContextMenu2;
- extern PACKAGE GUID IID_IShellDetails;
- extern PACKAGE GUID IID_IShellFolder2;
- static const Shortint SLR_NO_UI = 0x1;
- static const Shortint SLR_ANY_MATCH = 0x2;
- static const Shortint SLR_UPDATE = 0x4;
- static const Shortint SLGP_SHORTPATH = 0x1;
- static const Shortint SLGP_UNCPRIORITY = 0x2;
- #define CMDSTR_NEWFOLDER "NewFolder"
- #define CMDSTR_VIEWLIST "ViewList"
- #define CMDSTR_VIEWDETAILS "ViewDetails"
- static const Shortint SHGDN_NORMAL = 0x0;
- static const Shortint SHGDN_INFOLDER = 0x1;
- static const Word SHGDN_FORADDRESSBAR = 0x4000;
- static const Word SHGDN_FORPARSING = 0x8000;
- static const Shortint SHCONTF_FOLDERS = 0x20;
- static const Shortint SHCONTF_NONFOLDERS = 0x40;
- static const Byte SHCONTF_INCLUDEHIDDEN = 0x80;
- static const Shortint SHDVID_SETPROGRESSPOS = 0x0;
- static const Shortint SHDVID_SETPROGRESSRANGE = 0x1;
- static const Shortint SHDVID_SETSTATUSTEXT = 0x2;
- static const Shortint SHDVID_REFRESH = 0x3;
- static const Shortint SHDVID_STOP = 0x4;
- static const Shortint SHDVID_UPDATECOMMANDS = 0x5;
- static const Shortint SHDVID_SETTITLE = 0x6;
- static const Shortint SHDVID_FINALTITLEAVAIL = 0x7;
- static const Shortint SHDVID_STARTLOAD = 0x8;
- static const Shortint SHDVID_STOPLOAD = 0x9;
- static const Shortint SHDVID_CCALLBACK = 0xa;
- static const Shortint SHDVID_MENUEXEC = 0xb;
- static const Shortint SHDVID_MENUQS = 0xc;
- #define CFSTR_SHELLIDLIST "Shell IDList Array"
- #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets"
- #define CFSTR_NETRESOURCES "Net Resource"
- #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor"
- #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW"
- #define CFSTR_FILECONTENTS "FileContents"
- #define CFSTR_FILENAMEA "FileName"
- #define CFSTR_FILENAMEW "FileNameW"
- #define CFSTR_PRINTERGROUP "PrinterFriendlyName"
- #define CFSTR_FILENAMEMAPA "FileNameMap"
- #define CFSTR_FILENAMEMAPW "FileNameMapW"
- #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
- #define CFSTR_FILEDESCRIPTOR "FileGroupDescriptor"
- #define CFSTR_FILENAME "FileName"
- #define CFSTR_FILENAMEMAP "FileNameMap"
- static const Shortint FD_CLSID = 0x1;
- static const Shortint FD_SIZEPOINT = 0x2;
- static const Shortint FD_ATTRIBUTES = 0x4;
- static const Shortint FD_CREATETIME = 0x8;
- static const Shortint FD_ACCESSTIME = 0x10;
- static const Shortint FD_WRITESTIME = 0x20;
- static const Shortint FD_FILESIZE = 0x40;
- static const Word FD_LINKUI = 0x8000;
- extern PACKAGE TSHGetDataFromIDListA SHGetDataFromIDList;
- extern "C" unsigned __stdcall SHGetMalloc(IMalloc* &pMalloc);
- extern "C" void __stdcall SHAddToRecentDocs(unsigned aFlags, void * pv);
- extern "C" PItemIDList __stdcall SHBrowseForFolder(const TBrowseInfo &aBrowseInfo);
- extern "C" unsigned __stdcall SHGetDesktopFolder(IShellFolder* &i);
- extern "C" BOOL __stdcall SHGetPathFromIDList(PItemIDList pidl, char * pszPath);
- extern "C" unsigned __stdcall SHGetInstanceExplorer(void * &unk);
- extern "C" unsigned __stdcall SHGetSpecialFolderLocation(HWND ahwnd, int nFolder, PItemIDList &pItemList
- );
- extern "C" unsigned __stdcall SHChangeNotify(int wEventId, unsigned uFlags, void * dwItem1, void * dwItem2
- );
-
- } /* namespace Uptshell95 */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Uptshell95;
- #endif
- #pragma option pop // -w-
-
- #pragma delphiheader end.
- //-- end unit ----------------------------------------------------------------
- #endif // UPTShell95
-